using System;
using System.Collections.Generic;
using SouthernLand.Common.DAL;

namespace SouthernLand.Common.BOL.Country
{
    public class Country
    {
        #region Public Properties

        public Int32 CountryID { get; set; }

        public String CountryCode { get; set; }

        public String CountryName { get; set; }

        #endregion

        #region public static Methods

        public static int Insert(Country obj)
        {
            var db = new CountryDAL();
            return db.Insert(obj);
        }


        public static Country GetCountryByID(Int32 CountryID)
        {
            var db = new CountryDAL();
            return db.GetCountryByID(CountryID);
        }

        //Get All Country
        public static List<Country> GetAllCountry()
        {
            var db = new CountryDAL();
            return db.GetAllCountry();
        }

        #endregion
    }
}